/*cardDoctorAdmin - directive.js - Yadong Zhu 2014*/
(function() {
    'use strict';
    /* Directives */
    angular.module('cardDoctorAdmin.directives', [])
    .directive("scroll", function($window) {
            return function(scope, element, attrs) {
                angular.element($window).bind("scroll", function() {
                    if (this.pageYOffset >= 100) {
                        scope.boolChangeClass = true;
                    } else {
                        scope.boolChangeClass = false;
                    }
                    scope.$apply();
                });
            }
        });

}());
